package org.ruoyi.aibox.domain.bo;

import org.ruoyi.common.core.validate.AddGroup;
import org.ruoyi.common.core.validate.EditGroup;
import org.ruoyi.aibox.domain.DocAuditResult;
import org.ruoyi.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 文档审核结果业务对象 doc_audit_result
 *
 * @author xpeter
 * @date 2025-04-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = DocAuditResult.class, reverseConvertGenerate = false)
public class DocAuditResultBo extends BaseEntity {

    /**
     * 结果ID
     */
    @NotNull(message = "结果ID不能为空", groups = { EditGroup.class })
    private Long resultId;

    /**
     * 任务ID
     */
    @NotNull(message = "任务ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long taskId;

    /**
     * 文档ID
     */
    @NotBlank(message = "文档ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String docId;

    /**
     * 文档名称
     */
    @NotBlank(message = "文档名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String docName;

    /**
     * 文档类型
     */
    @NotBlank(message = "文档类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String docType;

    /**
     * 审核对象名称
     */
    @NotBlank(message = "审核对象名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String auditObjectName;

    /**
     * 使用模型名
     */
    @NotBlank(message = "使用模型名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String modelName;

    /**
     * 审核状态
     */
    @NotBlank(message = "审核状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String auditStatus;

    /**
     * 审核项总数
     */
    @NotNull(message = "审核项总数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long totalItems;

    /**
     * 审核通过数
     */
    @NotNull(message = "审核通过数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long auditPassItems;

    /**
     * 已审核数
     */
    @NotNull(message = "已审核数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long auditedItems;

    /**
     * 审核评分
     */
    @NotNull(message = "审核评分不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long auditScore;

    /**
     * AI审核结论
     */
    @NotBlank(message = "AI审核结论不能为空", groups = { AddGroup.class, EditGroup.class })
    private String auditAiConclusion;

    /**
     * 审核时间
     */
    @NotNull(message = "审核时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long auditTime;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
